package org.restoran.service;

import org.restoran.model.Order;
import org.restoran.model.Table;

/**
 * @author Ievgen Pidvysotskyi
 */
public interface TableService extends CrudService<Table, Integer>, BeanParserService<Table> {

    /**
     *
     * @return
     */
    Order getOrderFromTableAsLazy(Table target);

    /**
     * Update existed order from given entity.
     * @param order entity to update
     * @return updated entity
     */
    Table update(Table order);

}
